package com.bdqn.hospital.service.impl;

import com.bdqn.hospital.mapper.RoomMapper;
import com.bdqn.hospital.pojo.Room;
import com.bdqn.hospital.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 14:57
 * @Description: com.bdqn.hospital.service.impl
 */
@Service
public class RoomServiceImpl implements RoomService {
    @Autowired
    private RoomMapper roomMapper;
    @Override
    public Room getById(Integer id) {
        return roomMapper.getById(id);
    }

    @Override
    public List<Room> findAll() {
        return roomMapper.findAll();
    }
}
